<template>
  <div id="app" :class="{hideScroll: $store.state.mask}">
    <transition name="fade">
      <router-view />
    </transition>
  </div>
</template>

<script>
import apiNo from '@/config/api'
export default {
  name: 'App',
  created () {
    document.title = this.$site.name
    // this.test()
  },
  methods: {
    async test () {
      let { entries } = Object
      let pool = {}
      for (let [key, value] of entries(apiNo)) {
        if (key - +key === 0) {
          console.log(value)
          let res = await this.$api[key]()
          pool[value] = res
        }
      }
      console.log(pool)
    }
  }
}
</script>

<style lang='scss'>
@import '@/style/app.scss';
</style>
